package com.android.v1.ordertracking;

import com.android.v1.ordertracking.model.Order;
import com.android.v1.ordertracking.utils.Common;
import com.googlecode.androidannotations.annotations.AfterViews;
import com.googlecode.androidannotations.annotations.Click;
import com.googlecode.androidannotations.annotations.EActivity;
import com.googlecode.androidannotations.annotations.ViewById;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

@EActivity(R.layout.order_info_activity)
public class OrderInfoActivity extends Activity {

    @ViewById
    Button back;
	
	@AfterViews
	public void init(){
	    back.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View arg0) {
                OrderInfoActivity.this.finish();
            }
        });

        Order order = (Order) getIntent().getSerializableExtra("order");
        
        ((TextView)findViewById(R.id.txtOrderId)).setText(order.getOrderId());
        ((TextView)findViewById(R.id.txtOrderAmount)).setText(order.getAmount());
        ((TextView)findViewById(R.id.txtOrderState)).setText(order.getState());
        ((TextView)findViewById(R.id.txtOrderPayMsg)).setText(order.getPayMsg());
        ((TextView)findViewById(R.id.txtOrderPayType)).setText(order.getPayType());
        ((TextView)findViewById(R.id.txtOrderAddress)).setText(order.getAddress());
        ((TextView)findViewById(R.id.txtOrderGoodsNumber)).setText(order.getGoodsNumber());
        ((TextView)findViewById(R.id.txtOrderGoodsPrice)).setText(order.getGoodsPrice());
        ((TextView)findViewById(R.id.txtOrderGoodsQty)).setText(order.getGoodsQty());
        ((TextView)findViewById(R.id.txtOrderGoodsTotal)).setText(order.getGoodsTotal());
        ((TextView)findViewById(R.id.txtOrderDeliveryId)).setText(order.getDeliveryId());
        ((TextView)findViewById(R.id.txtOrderDeliveryDate)).setText(order.getDeliveryDate());
        ((TextView)findViewById(R.id.txtOrderFreightId)).setText(order.getFreightId());
        ((TextView)findViewById(R.id.txtOrderTrack)).setText(order.getTrack());
        ((TextView)findViewById(R.id.txtOrderGoodsName)).setText(order.getGoodsName());
        ((TextView)findViewById(R.id.txtOrderCoupons)).setText(order.getCoupons());
        ((TextView)findViewById(R.id.txtOrderDeliveryType)).setText(order.getDeliveryType());
        ((TextView)findViewById(R.id.txtOrderDeliveryName)).setText(order.getDeliveryName());
        ((TextView)findViewById(R.id.txtOrderDeliveryPhone)).setText(order.getDeliveryPhone());
        ((TextView)findViewById(R.id.txtOrderDeliveryPerson)).setText(order.getDeliveryPerson());
        ((TextView)findViewById(R.id.txtOrderDeliveryPersonPhone)).setText(order.getDeliveryPersonPhone());
        ((TextView)findViewById(R.id.txtOrderInvoice)).setText(order.getInvoice());
        ((TextView)findViewById(R.id.txtOrderInvoiceType)).setText(order.getInvoiceType());
        ((TextView)findViewById(R.id.txtOrderInvoiceContent)).setText(order.getInvoiceContent());
        ((TextView)findViewById(R.id.txtOrderIsConfirm)).setText(order.getIsConfirm());
        ((TextView)findViewById(R.id.txtOrderRemark)).setText(order.getRemark());
	}

	public void back(){
	    
	}
}
